package com.sf.fy.uav.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sf.fy.uav.common.request.operate.BusinessReq;
import com.sf.fy.uav.common.request.operate.MerchantReq;
import com.sf.fy.uav.common.response.operational.BusinessRes;
import com.sf.fy.uav.common.response.operational.MerchantRes;
import com.sf.fy.uav.common.utils.RespJsonPageData;
import com.sf.fy.uav.common.utils.Rs;
import com.sf.fy.uav.entity.Business;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LTQ
 * @since 2023-12-07
 */
public interface IBusinessService extends IService<Business> {
    /**
     * 获取商店列表
     *
     * @return
     */
    List<Business> getBusinesses();

    /**
     * 通过景区id获取商店列表
     *
     * @param scenicSpotId
     * @return
     */
    List<Business> getBusinessesByScenicSpotId(String scenicSpotId);

    /**
     * 分页查询商家
     * @param businessReq
     * @return
     */
    RespJsonPageData<BusinessRes> getPageBusiness(BusinessReq businessReq);

    /**
     * 分页查询商家详细信息并关联商品以及景区表
     * @param merchantReq
     * @return
     */
    RespJsonPageData<MerchantRes> getPageMerchant(MerchantReq merchantReq);

    /**
     * 新增商家接口
     * @param merchantReq
     * @return
     */
    Rs<Integer> save(MerchantReq merchantReq);

    /**
     * 编辑商家
     * @param merchantReq
     * @return
     */
    Rs<Integer> updateById(MerchantReq merchantReq);

    /**
     * 移除区域商家
     * @param merchantReq
     * @return
     */
    Rs<Integer> deletedBusiness(MerchantReq merchantReq);

    /**
     * 根据商家id集合查询商家集合
     * @param businessIds
     * @return
     */
    List<Business> getBusinessesByBusinessIds(Set<String> businessIds);
}
